The purpose of a credit swap is to transfer some or all of the credit risk of a reference asset or portfolio of reference assets to a third party. The total return swap is generally considered to be a credit swap although this instrument involves more than the transfer of a credit risk.